package org.dromara.authcode.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.authcode.domain.TOrder;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 订单视图对象 t_order
 *
 * @author Miles Meng
 * @date 2025-08-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TOrder.class)
public class TOrderVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 订单号
     */
    @ExcelProperty(value = "订单号")
    private Long orderNo;

    /**
     * 商品ID
     */
    @ExcelProperty(value = "商品ID")
    private Long goodsId;

    /**
     * 点数
     */
    @ExcelProperty(value = "点数")
    private Long points;

    /**
     * 订单金额;单位：分
     */
    @ExcelProperty(value = "订单金额;单位：分")
    private Long orderAmt;

    /**
     * 订单状态;UNPAY 未支付；PAYED 已支付；
     */
    @ExcelProperty(value = "订单状态;UNPAY 未支付；PAYED 已支付；")
    private String orderStatus;

    /**
     * 订单时间
     */
    @ExcelProperty(value = "订单时间")
    private Date orderTime;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 订单成功完成时间
     */
    @ExcelProperty(value = "订单成功完成时间")
    private Date succTime;

    /**
     * 订单成功的支付流水ID
     */
    @ExcelProperty(value = "订单成功的支付流水ID")
    private Long succPayTransId;

    /**
     * 钱包流水ID
     */
    @ExcelProperty(value = "钱包流水ID")
    private Long walletFlowId;


}
